package com.gaoding.shared.dict.service.impl;

import com.gaoding.orm.service.impl.BaseServiceImpl;
import com.gaoding.shared.dict.entity.DictTextContent;
import com.gaoding.shared.dict.repository.DictTextContentRepository;
import com.gaoding.shared.dict.service.DictTextContentService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 字典内容配置表(DictTextContent)表服务实现类
 *
 * @author mobai
 * @since 2021-02-02 09:58:48
 */

@Service("dictTextContentService")
@Slf4j
public class DictTextContentServiceImpl extends BaseServiceImpl<DictTextContent, DictTextContentRepository> implements DictTextContentService {
    @Resource
    private DictTextContentRepository dictTextContentrepository;


    @Override
    public List<DictTextContent> findAllByLanguageCode(String languageCode) {
        return dictTextContentrepository.findAllByLanguageCode(languageCode);
    }
}